import Management from "../management";
import { RequireAuth } from "../auth/requireAuth";
import Header from "../header/index";
import { SubHeader } from "../subHeader";
import React from "react";
export const Layout = ({ brandCode, selectedModuleName,selectedEntityName, children,RoleManagement,UserManagement }) => {
  return (
    <RequireAuth>
      <Header brandCode={brandCode}></Header>
      <SubHeader
        brandCode={brandCode}
        selectedModuleName={selectedModuleName}
        selectedEntityName={selectedEntityName}
      ></SubHeader>
      <Management
        brandCode={brandCode}
        selectedModuleName={selectedModuleName}
        selectedEntityName={selectedEntityName}
        children={children}
        RoleManagement={RoleManagement}
        UserManagement={UserManagement}
      ></Management>
    </RequireAuth>
  );
};
